package com.dlc.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Citrus
 * @date 2021-08-16 14:22:47
 */
@Data
@TableName("tz_order_invoice")
@Schema(description = "订单发票表")
public class OrderInvoice implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "订单发票ID" )
    private Long orderInvoiceId;

    @Schema(description = "订单编号" )
    private String orderNumber;

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "发票类型 1.电子普通发票" )
    private Integer invoiceType;

    @Schema(description = "抬头类型 1.单位 2.个人" )
    private Integer headerType;

    @Schema(description = "抬头名称" )
    private String headerName;

    @Schema(description = "发票税号" )
    private String invoiceTaxNumber;

    @Schema(description = "发票内容 1.商品明细" )
    private Integer invoiceContext;

    @Schema(description = "发票状态 1.申请中 2.已开票 3.失败" )
    private Integer invoiceState;

    @Schema(description = "文件id" )
    private Long fileId;

    @Schema(description = "申请时间" )
    private Date applicationTime;

    @Schema(description = "上传时间" )
    private Date uploadTime;

    @TableField(exist = false)
    @Schema(description = "店铺名称" )
    private String shopName;

    @TableField(exist = false)
    @Schema(description = "用户id" )
    private String userId;

    @TableField(exist = false)
    @Schema(description = "订单状态 1:待付款 2:待发货 3:待收货 4:待评价 5:成功 6:失败 7:待成团" )
    private Integer orderStatus;
}
